<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Netlify example: Serverless functions</title>
    <link rel="stylesheet" href="/css/styles.css" />
</head>

<body>
    <div class="container">
        <h1>Example: Hello Netlify Functions</h1>
        <p>
            A hello world example of using Netlify Functions to add serverless functions to your project.
        </p>
        <p>
            To add Netlify Functions, create a JavaScript, TypeScript, or Go function to your project in a <code>netlify/functions</code> directory. You can customize the address for your functions using Netlify's Redirects API
        </p>
        <h2>Examples</h2>
        <ul>
            <li><a href="/.netlify/functions/hello?name=you">Hello World</a> ( /.netlify/functions/hello?name=you )</li>
            <li><a href="/api/hello?name=you">Hello World</a> ( /api/hello?name=you )</li>
            <li><a href="/api/template">获取luo-cli中的代码模版</a></li>
        </ul>

    </div>

</body>

</html>